b=2
def hello(param):
    global a
    a=1
    print(a)
    return param

f = open("/tmp/output", "w")
if f:
    f.write("hello")
    print('1111')

try:
   f = open("/tmp/output", "w")
   f.write("hello")
   #raise Exception("something wrong")
except:
    print("1111")
finally:
   print("closing file")
   f.close()

print(hello('hello world!'))
print(a, b)

print('--------------------------')
arr = [2,3,5,6,9,23,56,7]
print(arr)
for item in arr:
    print(item)

print('========================')
obj_arr = [
    {
        "name": '1111',
        "age": 1
    },{
        "name": '2222',
        "age": 2
    },{
        "name": '3333',
        "age": 3
    },{
        "name": '4444',
        "age": 1
    },{
        "name": '5555',
        "age": 1
    },{
        "name": '6666',
        "age": 1
    }
]

for item in obj_arr:
    print(item)
